import org.vaadin.sbt.VaadinPlugin._
import sbt.Keys._

name := "vaadin-demo"

version := "1.0.0"

scalaVersion := "2.12.0"


libraryDependencies ++= Seq(

  "javax.servlet" % "javax.servlet-api" % "3.0.1" % "provided",

  "com.google.guava" % "guava" % "18.0"
)

//enablePlugins(JettyPlugin)

vaadinThemes := Seq("my")

target in compileVaadinThemes := (sourceDirectory in Compile).value / "webapp" / "VAADIN" / "themes"

lazy val lang = RootProject(file("../very-util-lang"))



val vaadinVersion = "7.7.5"
libraryDependencies ++= Seq(
  "com.vaadin" % "vaadin-server" % vaadinVersion,
  "com.vaadin" % "vaadin-client-compiled" % vaadinVersion,
  "com.vaadin" % "vaadin-themes" % vaadinVersion)

//lazy val structure =


lazy val root = project.in(file(".")).dependsOn(lang).settings(vaadinWebSettings :_*).enablePlugins(JettyPlugin)